package com.wlyuan.open;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author yuanzheng
 */
@Data
@ToString
public abstract class OpenBaseSyncDTO implements Serializable {
    private static final long serialVersionUID = -3806456772381591328L;
    @NotBlank(message = "sourceKey不能为空")
    private String sourceKey;

    @NotBlank(message = "appId不能为空")
    private String appId;

    @NotNull(message = "租户ID不能为空")
    private Long tenantId;

    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @ApiModelProperty("源数据")
    private String raw;
}
